package tt.dz.service.sys;

import java.text.ParseException;
import java.util.List;

import tt.dz.entity.base.JsonForList;
import tt.dz.entity.base.JsonPageForList;
import tt.dz.entity.base.OmsCommonParam;
import tt.dz.entity.charger.OmsCharger;
import tt.dz.entity.charger.OmsChargerRate;
import tt.dz.entity.exception.BizException;
import tt.dz.mvc.model.SaveRateModel;

public interface OmsChargerRateService {

	OmsChargerRate findOneExample(OmsChargerRate obj,
			String order, String sortVal) ;

//	public List<OmsChargerRate> findList(OmsChargerRate obj, Integer pageNo, Integer pageSize,String sortName,Integer sortVal);

	public JsonPageForList findRateGroup(OmsChargerRate obj, Integer pageNo, Integer pageSize,String sortName, Integer sortVal,String groupByStrs,Boolean queryTotal);
	
	public int save(OmsChargerRate obj);
	
	public int saveList(List<OmsChargerRate> objList);
	
	public int updateObject(OmsChargerRate obj);
	
	public int logicDelete(OmsChargerRate obj);
	//费率方案号和桩做绑定
	public int bindChargers(String rate_schema,int fee_type,List<String> chargerIds);

	JsonForList<?> findPageOrAll(OmsCommonParam buildQueryParam, OmsChargerRate rate);

	JsonForList<?> findRate(String rateSchema);

	int deleteByRateSchema(String rate_schema);

	public List<OmsCharger> findChargersBySchema(String rate_schema);

	public List<OmsCharger> findNullChargers(String fee_type,String default_for);

	public List<OmsChargerRate> findByChargerId(String charger_id);

	public int unBindChargers(Integer fee_type, List<String> chargerIdList);

	public void saveChargeRate(SaveRateModel model) throws BizException;

}
